<template>

    <div>

        <div>
            <label style="margin-right: 10px">是否显示成员</label>
            <i-switch size="large">
                <span slot="open">显示</span>
                <span slot="close">隐藏</span>
            </i-switch>
        </div>

        <Tree :data="data1"></Tree>
    </div>

</template>
<script>
    export default {
        data () {
            return {
                data1: [
                    {
                        title: '优信保公司',
                        expand: true,
                        children: [
                            {
                                title: '部门',
                                expand: true,
                                children: [
                                    {
                                        title: '研发部',
                                        expand: true,
                                        children:[
                                            {
                                                title: '研发一组',
                                                expand: true,
                                                children: []
                                            },
                                            {
                                                title: '研发二组',
                                                expand: true,
                                                children: []
                                            }

                                        ]
                                    },
                                    {
                                        title: '业务部',
                                        expand: true,
                                        children:[
                                            {
                                                title: '业务部一部',
                                                expand: true,
                                                children: []
                                            },
                                            {
                                                title: '业务部二部',
                                                expand: true,
                                                children: []
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        }
    }
</script>
